﻿CREATE TABLE [dbo].[ArticulosCompuestos] (
    [IdArticuloCompuesto] INT IDENTITY (1, 1) NOT NULL,
    [IdArticulo]          INT NOT NULL,
    [IdArticuloDetalle]   INT NOT NULL,
    [Cantidad]            INT NOT NULL,
    CONSTRAINT [PK_ArticulosCompuestos] PRIMARY KEY CLUSTERED ([IdArticuloCompuesto] ASC),
    CONSTRAINT [FK_ArticulosCompuestos_Articulos] FOREIGN KEY ([IdArticulo]) REFERENCES [dbo].[Articulos] ([IdArticulo]),
    CONSTRAINT [FK_ArticulosCompuestos_ArticulosDetalles] FOREIGN KEY ([IdArticuloDetalle]) REFERENCES [dbo].[Articulos] ([IdArticulo])
);



